﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WCF
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWCFContacto" in both code and config file together.
    [ServiceContract]
    public interface IWCFContacto
    {
        [OperationContract]
        List<DTO.Contacto> list();
        
        [OperationContract]
        DTO.Contacto getByID(int id);

        [OperationContract]
        List<DTO.Contacto> getByCliente(int? idCliente);

        [OperationContract]
        List<DTO.Contacto> getByAgencia(int idAgencia);

        [OperationContract]
        void insert(DTO.Contacto toInsert);

        [OperationContract]
        void delete(int id);
    }
}
